package com.mlody.chapter22;

/**
 * Created by tmlod_000 on 2014-11-29.
 */
public class HexaObserver extends Observer {
    @Override
    public void update() {
        System.out.println("hex"+Integer.toHexString(this.subject.getState()));
    }

    public HexaObserver(Subject subject) {
        this.subject=subject;
        this.subject.attach(this);
    }
}
